package model;

public class AreaEffect {
	enum areaEffectType {takeDamage, healDamage, instantDeath, levelUp}
	private areaEffectType myAreaEffectType;
	public boolean doEffect()
	{
		return(false);
	}
	//adds each effect coding may have to change depending on how much life & level to give.
	public boolean touch(Entity e)
	{
		switch(myAreaEffectType)
		{
			case takeDamage: 
				e.takeDamage();
				break;
			case healDamage:
				e.healDamage();
				break;
			case instantDeath:
				e.death();
				break;
			case levelUp:
				e.increaseLevel();
				break;
			default: return false;			
		}
		return true;
		
	}
	
	public areaEffectType getMyAreaEffectType() {
		return myAreaEffectType;
	}
	public void setMyAreaEffectType(areaEffectType myAreaEffectType) {
		this.myAreaEffectType = myAreaEffectType;
	}
	
}
